﻿using System;
using System.Collections.Generic;
using System.Text;

namespace taobao.Picture
{
    /// <summary>
    /// taobao.picture.get 输入参数  ---  是否必需[Y]/[N]
    /// </summary>
    public class GetPut : taobao.Util.SystemPut
    {
        public GetPut()
        {
            app_key = taobao.Config.Appkey;
            method = "taobao.picture.get";
        }

        private string _fields = "picture_id,picture_category_id,picture_path,title,sizes,pixel,status,deleted,created,modified";
        /// <summary>
        /// 需返回的字段列表。可选值：Sku结构体中的所有字段；字段之间用“,”分隔。 默认已经是全部Sku结构体。  String [Y]
        /// </summary>
        public string fields
        {
            set { _fields = value; }
            get { return _fields; }
        }

        private string _picture_id = string.Empty;
        /// <summary>
        /// 图片ID   String [N]
        /// </summary>
        public string picture_id
        {
            set { _picture_id = value; }
            get { return _picture_id; }
        }

        private string _picture_category_id = string.Empty;
        /// <summary>
        ///图片分类ID   String [N]
        /// </summary>
        public string picture_category_id
        {
            set { _picture_category_id = value; }
            get { return _picture_category_id; }
        }

        private string _deleted = string.Empty;
        /// <summary>
        /// 是否删除,unfroze代表没有删除  String [N]
        /// </summary>
        public string deleted
        {
            set { _deleted = value; }
            get { return _deleted; }
        }

        private string _modified_time = string.Empty;
        /// <summary>
        /// 图片编辑时间,返回的是图片最后修改（包括标题、分类、内容）时间为大于这个时间点的图片   String [N]
        /// </summary>
        public string modified_time
        {
            set { _modified_time = value; }
            get { return _modified_time; }
        }

        private string _title = string.Empty;
        /// <summary>
        /// 图片标题,最大长度50字符,中英文都算一字符    String [N]
        /// </summary>
        public string title
        {
            set { _title = value; }
            get { return _title; }
        }

        private string _order_by = string.Empty;
        /// <summary>
        /// 图片查询结果排序,time:desc按上传时间从晚到早(默认), time:asc按上传时间从早到晚,sizes:desc按图片从大到小，sizes:asc按图片从小到大,默认time:desc   String [N]
        /// </summary>
        public string order_by
        {
            set { _order_by = value; }
            get { return _order_by; }
        }

        private string _page_no = string.Empty;
        /// <summary>
        /// 页码.传入值为1代表第一页,传入值为2代表第二页,依此类推,默认值为1   String [N]
        /// </summary>
        public string page_no
        {
            set { _page_no = value; }
            get { return _page_no; }
        }

        private string _page_size = string.Empty;
        /// <summary>
        /// 每页条数.每页返回最多返回100条,默认值40   String [N]
        /// </summary>
        public string page_size
        {
            set { _page_size = value; }
            get { return _page_size; }
        }

        private string _start_date = string.Empty;
        /// <summary>
        /// 查询上传开始时间点,格式:yyyy-MM-dd HH:mm:ss 
        /// </summary>
        public string start_date
        {
            set { _start_date = value; }
            get { return _start_date; }
        }

        private string _end_date = string.Empty;
        /// <summary>
        /// 查询上传结束时间点,格式:yyyy-MM-dd HH:mm:ss 
        /// </summary>
        public string end_date
        {
            set { _end_date = value; }
            get { return _end_date; }
        }
    }
}
